home *** CD-ROM | disk | FTP | other *** search
/ Amiga Inside! / Amiga FD Inside (1995)(Ultramax).iso / berndspd / devtools / precognition / src / library / valuatorclass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-16  |  3.1 KB  |  126 lines

  1. /* ==========================================================================
  2. **
  3. **                   ValuatorClass.h
  4. **
  5. ** ©1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef VALUATORCLASS_H
  11. #define VALUATORCLASS_H
  12.  
  13. #include "InteractorClass.h"
  14. #include "Valuator.h"
  15. #include "pcgWindow.h"
  16.  
  17. struct ValuatorClass
  18. {
  19.    const PClass *isa;
  20.    char  *ClassName;
  21.  
  22.    void   (*CleanUp)
  23.              __PARMS(( PObject *self ));
  24.    Point (*Location)
  25.              __PARMS(( GraphicObject *self ));
  26.    Point (*SetLocation)
  27.              __PARMS(( GraphicObject *self,
  28.               PIXELS    LeftEdge,
  29.               PIXELS    TopEdge ));
  30.    Point (*Size)
  31.              __PARMS(( GraphicObject *self ));
  32.    Point (*AskSize)
  33.              __PARMS(( GraphicObject *self,
  34.               PIXELS    Width,
  35.               PIXELS    Height ));
  36.    Point (*SetSize)
  37.              __PARMS(( GraphicObject *self,
  38.               PIXELS    Width,
  39.               PIXELS    Height ));
  40.  
  41.    UWORD (*SizeFlags) __PARMS(( GraphicObject *self ));
  42.  
  43.    void (*Render)
  44.              __PARMS(( GraphicObject *self,
  45.               RastPort *RPort ));
  46.  
  47.    BOOL (*SetTitle)
  48.              __PARMS(( GraphicObject *self,
  49.               char      *title ));
  50.  
  51.    char *(*Title)
  52.              __PARMS(( GraphicObject *self ));
  53.  
  54. /* additions for font information */
  55.    TextAttr *(*DefaultFont) __PARMS(( GraphicObject *self ));
  56.    BOOL (*SetDefaultFont) __PARMS(( GraphicObject *self, TextAttr *default_font ));
  57.  
  58.    AlignInfo *(*TextAlignment) __PARMS(( GraphicObject *self ));
  59.  
  60.    BOOL (*SetTextAlignment)
  61.              __PARMS(( GraphicObject *self,
  62.               UBYTE         Flags,
  63.               BYTE          Xpad,
  64.               BYTE          Ypad ));
  65.  
  66.    PClass *BuilderMethods;
  67.  
  68.    struct pcgWindow *(*InteractorWindow)
  69.              __PARMS(( Interactor *self ));
  70.  
  71.    void (*SetInteractorWindow)
  72.              __PARMS(( Interactor *self,
  73.               struct pcgWindow *window ));
  74.  
  75.    Gadget *(*FirstGadget)
  76.              __PARMS(( Interactor *self ));
  77.  
  78.    USHORT (*nGadgets)
  79.              __PARMS(( Interactor *self ));
  80.  
  81.    ULONG (*IDCMPFlags)
  82.              __PARMS(( Interactor *self ));
  83.  
  84.    USHORT (*ClaimEvent)
  85.              __PARMS(( Interactor *self,
  86.               IntuiMessage *event ));
  87.  
  88.    USHORT (*Respond)
  89.              __PARMS(( Interactor *self,
  90.               IntuiMessage *event ));
  91.  
  92.    void (*Refresh)
  93.              __PARMS(( Interactor *self ));
  94.  
  95.    BOOL (*EnableIactor)
  96.              __PARMS(( Interactor *self,
  97.               BOOL      enable ));
  98.  
  99.    BOOL (*isEnabled)
  100.              __PARMS(( Interactor *self  ));
  101.  
  102.    BOOL (*Activate)
  103.              __PARMS(( Interactor *self,
  104.               BOOL      activate ));
  105.  
  106.    BOOL (*isActive)
  107.              __PARMS(( Interactor *self ));
  108.  
  109.  
  110. /*--- New Methods ----------------------------*/
  111.  
  112.    LONG (*Value)
  113.              __PARMS(( Valuator *self ));
  114.  
  115.    LONG (*SetValue)
  116.              __PARMS(( Valuator *self,
  117.               LONG      selection ));
  118.  
  119. };
  120.  
  121.  
  122. struct ValuatorClass *ValuatorClass __PARMS(( void ));
  123.  
  124. void ValuatorClass_Init __PARMS(( struct ValuatorClass *class ));
  125.  
  126. #endif